<tagLib name="cx,html" />
<html:link type="JS" href="../Public/Js/common.js" />
<div id="box">
<h3>评论列表</h3>
<form method="post" action="{:url('del','Comment')}">
过滤条件 <html:select name="filter" id="filter" change="window.location='__ACTION__/filter/'+this.options[this.selectedIndex].value" options="filterList" selected="selectFilter" />
<table id="commentlist" class="list" cellpadding="0" cellspacing="0" >
<thead>
<tr>
	<th width="8"><input type="checkbox" class="checkbox" id="check" onclick="CheckAll('commentlist')"></th>
	<th width="65%">内容</th><th>时间</th><th width="15%">操作</th>
</tr>
</thead>
<tbody>
<volist name="commentList" id="comment">
<tr>
	<td><input type="checkbox" class="checkbox" name="comment_IDs[]" value="{$comment.comment_ID}"></td>
	<td style="line-height: 20px"><a href="{:url('edit','Comment','',APP_NAME,array('ID'=>$comment['comment_ID']))}">{$comment.comment_author|Input::forShow}</a><br />url: {$comment.comment_author_url|Input::forShow} | email: {$comment.comment_author_email|Input::forShow} | IP: {$comment.comment_author_IP}<br />{$comment.comment_content|Input::forShow}<br />所在日志: <a href="{$options.siteurl}/index.php?s=/Blog/{$comment.comment_post_ID}">{$comment.post_title|Input::forShow}</a> 发表日期: {$comment.post_date}</td>
	<td>{$comment.comment_date}</td>
	<td>
	<if condition="$comment['comment_approved'] eq '0'">
	<a href="{:url('approve','Comment','',APP_NAME,array('ID'=>$comment['comment_ID'],'value'=>'1'))}">审核</a>
	<else />
	<a href="{:url('approve','Comment','',APP_NAME,array('ID'=>$comment['comment_ID'],'value'=>'0'))}">不审核</a>
	</if>
	 <a href="admin.php?s=/Comment/del/ID/{$comment.comment_ID}" onclick="return confirm('真的要删除这条评论吗？');">删除</a>
	</td>
</tr>
</volist>
</tbody>
</table>
<div>
	<div id="pager">
		{$navigation}
	</div>
	<div style="float:right; margin: 5px; 10px; 5px; 5px;"><input type="submit" value="删除所选" class="btn" onclick="return confirm('真的要删除这些评论吗？');"></div>
</div>
</form>
<div class="clearfix"></div>
</div>